package com.haoyun.mirage.user.model.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.haoyun.common.core.jackson.serializer.LongJsonDeserializer;
import com.haoyun.common.core.jackson.serializer.LongJsonSerializer;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Created by twg on 2018/7/2.
 */
@Data
public class DeptVO implements Serializable {

    private static final long serialVersionUID = -5157196997982999960L;

    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id;


    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long parentId;

    @NotBlank(message = "部门名称不能为空")
    private String deptName;

    private String deptShortName;

    private String deptContact;

    private String deptEmail;

    private String deptTel;

    private String deptPhone;

    private Integer deptType;

    private String deptAddress;

    private Integer isEnabled;


}
